<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<script src="js/test01.js"></script> <!--解释性语言 谁在上 谁先执行 -->
<script>
    alert("内部js");
</script>

<style>
    h2{
        cursor:pointer;
    }
</style>
<body>
    
    <h2 onclick="alert('行内');">点我试试</h2>
   
</body>
</html>